<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <title></title>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body>
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_uz_01')?></cite></a>
        <a href="<?=site_url('user')?>"><?=L('tpl_uz_02')?></a>
        <a href="<?=site_url('user/zu')?>"><?=L('tpl_uz_03')?></a>
    </span>
    <form class="layui-form" action="<?=site_url('user/zu_del')?>" method="post">
        <table class="layui-table" style="width: 99.7%">
            <colgroup>
                <col width="40">
            </colgroup>
            <thead>
                <tr>
                    <th><?=L('tpl_uz_04')?></th>
                    <th class="phide"><?=L('tpl_uz_05')?></th>
                    <th><?=L('tpl_uz_06')?></th>
                    <th><?=L('tpl_uz_07')?></th>
                    <th><?=L('tpl_uz_08')?></th>
                    <th class="phide"><?=L('tpl_uz_09')?></th>
                    <th class="phide"><?=L('tpl_uz_10')?></th>
                    <th class="phide"><?=L('tpl_uz_11')?></th>
                    <th class="phide"><?=L('tpl_uz_12')?></th>
                    <th class="phide"><?=L('tpl_uz_13')?></th>
                    <th class="phide"><?=L('tpl_uz_14')?></th>
                    <th><?=L('tpl_uz_15')?></th>
                </tr>
            </thead>
            <tbody>
            <?php
                if(empty($userzu)) echo '<tr><td align="center" height="50" colspan="11">'.L('tpl_uz_16').'</td></tr>';
                foreach ($userzu as $row) {
                    $xuan=($row->id>1)?'<input class="xuan" name="id['.$row->id.']" type="checkbox" value="'.$row->id.'" />':'--';
                    //会员数量
                    $usernums=$this->db->query("SELECT id FROM ".CS_SqlPrefix."user where zid=".$row->id."")->num_rows();
                    //上传附件权限
                    $fid=($row->fid==1)?'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/fid').'\','.$row->id.',1,\'fid_\');"><i class="fa fa-check colorl"></i></a>':'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/fid').'\','.$row->id.',0,\'fid_\');"><i class="fa fa-close colorr"></i></a>';
                    //发表数据权限
                    $aid=($row->aid==1)?'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/aid').'\','.$row->id.',1,\'aid_\');"><i class="fa fa-check colorl"></i></a>':'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/aid').'\','.$row->id.',0,\'aid_\');"><i class="fa fa-close colorr"></i></a>';
                    //发表数据审核权限
                    $sid=($row->sid==1)?'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/sid').'\','.$row->id.',1,\'sid_\');"><i class="fa fa-check colorl"></i></a>':'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/sid').'\','.$row->id.',0,\'sid_\');"><i class="fa fa-close colorr"></i></a>';
                    //自助升级权限
                    $vid=($row->vid==1)?'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/vid').'\','.$row->id.',1,\'vid_\');"><i class="fa fa-check colorl"></i></a>':'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/vid').'\','.$row->id.',0,\'vid_\');"><i class="fa fa-close colorr"></i></a>';
                    //站内信权限
                    $mid=($row->mid==1)?'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/mid').'\','.$row->id.',1,\'mid_\');"><i class="fa fa-check colorl"></i></a>':'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/mid').'\','.$row->id.',0,\'mid_\');"><i class="fa fa-close colorr"></i></a>';
                    //下载附件免费
                    $did=($row->did==1)?'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/did').'\','.$row->id.',1,\'did_\');"><i class="fa fa-check colorl"></i></a>':'<a title="'.L('tpl_uz_17').'" href="javascript:cscms.ok_no(\''.site_url('user/zu_init/did').'\','.$row->id.',0,\'did_\');"><i class="fa fa-close colorr"></i></a>';
                    echo '
                    <tr height="35">
                    <td>'.$xuan.'</td>
                    <td  class="phide">'.$row->id.'</td>
                    <td><input class="sort" style="width:30px;text-align: center;" zuid="'.$row->id.'" name="xid['.$row->id.']" onkeyup="this.value=this.value.replace(/[^0-9]/g,\'\')" value="'.$row->xid.'" /></td>
                    <td>'.$row->name.'</td>
                    <td>'.$usernums.'</td>
                    <td class="phide" id="fid_'.$row->id.'">'.$fid.'</td>
                    <td class="phide" id="aid_'.$row->id.'">'.$aid.'</td>
                    <td class="phide" id="sid_'.$row->id.'">'.$sid.'</td>
                    <td class="phide" id="vid_'.$row->id.'">'.$vid.'</td>
                    <td class="phide" id="mid_'.$row->id.'">'.$mid.'</td>
                    <td class="phide" id="did_'.$row->id.'">'.$did.'</td>
                    <td class="basedb-more"><a class="layui-btn layui-btn-mini" href="'.site_url('user/zu_edit').'?id='.$row->id.'&op=ok">'.L('tpl_uz_18').'</a>
                    </tr> ';
                }
            ?>
            </tbody>
        </table>
        <div class="more_func">
            <a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:cscms.select_all();"><i class="fa fa-check colorl" ></i><?=L('tpl_uz_19')?></a>
            <a class="layui-btn layui-btn-primary layui-btn-small" lay-submit lay-filter="del_pl"><i class="fa fa-close " style="color: red" ></i><?=L('tpl_uz_20')?></a>
            <a class="layui-btn layui-btn-primary layui-btn-small" href="javascript:cscms.sort_submit('<?=site_url('user/zu_sort')?>');"><i class="fa fa-sort colorb"></i> <?=L('tpl_uz_21')?></a>
            <div class="next-line">
            <a class="layui-btn layui-btn-primary layui-btn-small" href="<?=site_url('user/zu_edit')?>"><i class="fa fa-plus colorn"></i> <?=L('tpl_uz_22')?></a></div>
        </div>
    </form>
    <div id="page">
        <div class="data_nums phide"><?=$page_data?></div>
        <div class="data_page"><?=$page_list?></div>
    </div>
    <script type="text/javascript">
        cscms.init();
    </script>
</body>
</html>